﻿using Spider.Entitys.Spider;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpiderCore.Scheduler
{
    /// <summary>
    /// 调度器
    ///   多任务模式下，用来调度抓取哪一个网站
    /// </summary>
    public interface IScheduler
    {
        /// <summary>
        /// 推送
        /// </summary>
        bool Push(RequestModel request);

        /// <summary>
        /// 弹出
        /// </summary>
        RequestModel Pop();


        void Switch();

        void InitdomainList(List<string> list);
    }
}
